package com.kvest.fortests.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.kvest.fortests.LoggerService;
import com.kvest.fortests.activity.ForTestsActivity;
import com.kvest.fortests.service.RepeatedService;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 08.05.13
 * Time: 22:11
 * To change this template use File | Settings | File Templates.
 */
public class BootBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
//        LoggerService.getInstance().writeLog("booted, start service");
        context.startActivity(new Intent(context, ForTestsActivity.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));

        context.startService(new Intent(context, RepeatedService.class));
    }
}
